database_storage_management
Configuration for Resource to fetch database storage management resource.
Read/write properties
truncate_in_progress<Boolean>
Indicate whether an user initiated truncate operation is already in progress or not.
sources_for_truncate<String[]>
Array of sources whose tables need to be truncated to free up database space..
allowed_truncate_count<Integer>
Remaining number of times data can be truncated, to restart ingestion in a calendar month.
truncate_id<String>
Unique ID which represents a specific truncate operation initiated by the user.
is_truncate_allowed<Boolean>
Indicate whether persisted historical data from various sources can be truncated or not..
maximum_truncate_count<Integer>
Maximum number of times data can be truncated, to restart ingestion in a calendar month.
data_ingestion<String>
Indicates whether data ingestion is enabled or not. Possible values: Enabled, Disabled.
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/database_storage_management?action=truncate&onerror=<String_value>
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"database_storage_management": {
"data_ingestion":<String_value>,
"sources_for_truncate":<String_value[]>,
"is_truncate_allowed":<Boolean_value>,
"allowed_truncate_count":<Integer_value>,
"truncate_in_progress":<Boolean_value>,
"maximum_truncate_count":<Integer_value>,
"truncate_id":<String_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "database_storage_management":[{
"truncate_in_progress":<Boolean_value>,
"sources_for_truncate":<String_value>,
"allowed_truncate_count":<Integer_value>,
"truncate_id":<String_value>,
"is_truncate_allowed":<Boolean_value>,
"maximum_truncate_count":<Integer_value>,
"data_ingestion":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/database_storage_management
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/database_storage_management?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of database_storage_management resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/database_storage_management?pagesize=#no&pageno=#no
Use this query-parameter to get the database_storage_management resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/database_storage_management?count=yes
Use this query-parameter to get the count of database_storage_management resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "database_storage_management":[{
"truncate_in_progress":<Boolean_value>,
"sources_for_truncate":<String_value>,
"allowed_truncate_count":<Integer_value>,
"truncate_id":<String_value>,
"is_truncate_allowed":<Boolean_value>,
"maximum_truncate_count":<Integer_value>,
"data_ingestion":<String_value>}]}